package cz.cvut.felk.via.sm.model;

import java.io.Serializable;

import com.google.appengine.repackaged.com.google.common.base.genfiles.ByteArray;

/**
 * @author Azimus
 *
 */
public class File  implements Serializable, Comparable<File>{
	
	private static final long serialVersionUID = 1728167041538065348L;
	
	private long id;
	private String name;
	private int week;
	private byte[] content;
	private Subject subject;
	
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	
	public Subject getSubject() {
		return subject;
	}
	public void setSubject(Subject subject) {
		this.subject = subject;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getWeek() {
		return week;
	}
	public void setWeek(int week) {
		this.week = week;
	}
	public byte[] getContent() {
		return content;
	}
	public void setContent(byte[] content) {
		this.content = content;
	}
	@Override
	public int compareTo(File o) {
		return this.week-o.week;
	}
	
	
	
}
